package jhr.cms.service;

import java.io.Serializable;
import java.util.List;

import jhr.cms.domain.Post;
import jhr.cms.domain.ServiceException;

public interface PostServiceIF {
	Post save(Post u) throws ServiceException;
	Post update(Post u) throws ServiceException;
	void delete(Post u) throws ServiceException;
	void delete(Serializable id) throws ServiceException;
	Post get(Serializable id) throws ServiceException;
	List<Post> getPostByArticle(Serializable articleId, int start, int size) throws ServiceException;
	List<Post> getPostByParent(Serializable parentId, int start, int size) throws ServiceException;
	List<Post> find(String hql, int start, int size, Object... args) throws ServiceException;
}
